package com.ruoyi.project.syl_DZ.D.OutpatientPatient.domain;

import java.util.Date;
import java.util.UUID;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.mapper.OutpatientPatientMapperDxy;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.service.IOutpatientPatientServiceDxy;
import com.ruoyi.project.syl_DZ.D.OutpatientPatient.service.impl.OutpatientPatientServiceDxyImpl;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 outpatient_register
 *
 * @author ruoyi
 * @date 2021-07-17
 */
public class OutpatientRegisterGHD extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 挂号单号
 */
    @Excel(name = "挂号单号")
    private String registerId;

    /** 患者id
 */
    @Excel(name = "患者id")
    private Long patientId;

    /** 医生id
 */
    @Excel(name = "医生id")
    private Long doctorId;

    /** 科室id
 */
    @Excel(name = "科室id")
    private Long deptId;

    /** 当前号数
 */
    private Long registerSort;

    /** 挂号类型 */
    @Excel(name = "挂号类型")
    private String registerType;

    /** 挂号时段
 */
    @Excel(name = "挂号时段")
    private String registerSubsectionTime;

    /** 挂号时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "挂号时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 流水id */
    @Excel(name = "流水id")
    private Long turnoverId;

    /** 挂号费用 */
    @Excel(name = "挂号费用")
    private Integer registerCost;

    /** 收费状态 0 未收费 1已收费 */
    @Excel(name = "收费状态 0 未收费 1已收费")
    private String costStatus;

    /** 就诊状态 0 未就诊 1已就诊 */
    @Excel(name = "就诊状态 0 未就诊 1已就诊")
    private String outpatientStatus;

    public void setRegisterId(String registerId)
    {
        this.registerId = UUID.randomUUID().toString().trim().replaceAll("-", "");
    }

    public String getRegisterId()
    {
        return registerId;
    }
    public void setPatientId(Long patientId)
    {
        this.patientId = patientId;
    }

    public Long getPatientId()
    {
        return patientId;
    }
    public void setDoctorId(Long doctorId)
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId()
    {
        return doctorId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setRegisterSort(Long registerSort)
    {
        this.registerSort = registerSort;
    }

    public Long getRegisterSort()
    {
        return registerSort;
    }
    public void setRegisterType(String registerType)
    {
        this.registerType = registerType;
    }

    public String getRegisterType()
    {
        return registerType;
    }
    public void setRegisterSubsectionTime(String registerSubsectionTime)
    {
        this.registerSubsectionTime = registerSubsectionTime;
    }

    public String getRegisterSubsectionTime()
    {
        return registerSubsectionTime;
    }
    public void setRegisterTime(Date registerTime)
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime()
    {
        return registerTime;
    }
    public void setTurnoverId(Long turnoverId)
    {
        this.turnoverId = turnoverId;
    }

    public Long getTurnoverId()
    {
        return turnoverId;
    }
    public void setRegisterCost(Integer registerCost)
    {
        this.registerCost = registerCost;
    }

    public Integer getRegisterCost()
    {
        return registerCost;
    }
    public void setCostStatus(String costStatus)
    {
        this.costStatus = costStatus;
    }

    public String getCostStatus()
    {
        return costStatus;
    }
    public void setOutpatientStatus(String outpatientStatus)
    {
        this.outpatientStatus = outpatientStatus;
    }

    public String getOutpatientStatus()
    {
        return outpatientStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("registerId", getRegisterId())
            .append("patientId", getPatientId())
            .append("doctorId", getDoctorId())
            .append("deptId", getDeptId())
            .append("registerSort", getRegisterSort())
            .append("registerType", getRegisterType())
            .append("registerSubsectionTime", getRegisterSubsectionTime())
            .append("registerTime", getRegisterTime())
            .append("turnoverId", getTurnoverId())
            .append("registerCost", getRegisterCost())
            .append("costStatus", getCostStatus())
            .append("outpatientStatus", getOutpatientStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
